﻿using System;

namespace MessagePack.Decoders
{
	// Token: 0x020000B9 RID: 185
	internal class UInt16UInt32 : IUInt32Decoder
	{
		// Token: 0x060002D6 RID: 726 RVA: 0x0000BB05 File Offset: 0x00009F05
		private UInt16UInt32()
		{
		}

		// Token: 0x060002D7 RID: 727 RVA: 0x0000BB0D File Offset: 0x00009F0D
		public uint Read(byte[] bytes, int offset, out int readSize)
		{
			readSize = 3;
			return (uint)((int)bytes[offset + 1] << 8 | (int)bytes[offset + 2]);
		}

		// Token: 0x040000D8 RID: 216
		internal static readonly IUInt32Decoder Instance = new UInt16UInt32();
	}
}
